Import
Usage
Return Type: UseQueryResult<ContractInfo[]>
The hook returns all properties from React Query’s UseQueryResult with an array of contract information. Here’s the detailed structure:
Properties
data
ContractInfo[] | undefined
Array of objects containing contract information for each requested contract:
name: Contract or token namesymbol: Token symboldecimals: Number of decimals (for ERC20 tokens)logoURI: URL of the contract/token logotype: Contract type (ERC20, ERC721, ERC1155)verified: Whether the contract is verifieddescription: Optional contract descriptionwebsiteURL: Optional project website URLimageURL: Optional project image URLbannerURL: Optional banner image URLchainID: Chain ID where the contract exists
isLoading
boolean
Loading state for the data fetch.
isError
boolean
Error state indicating if the query failed.
error
Error | null
Any error that occurred during data fetching.